<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<%@ taglib prefix="rich" uri="http://richfaces.org/rich"%>
<f:view>
	<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="../css/main_enhance.css" type="text/css" media="screen" />
	<title><h:outputText id="JSF_0" value="{messageAcqRiskMng.mchntSearch}" /></title>	
	<script src="../js/iframe.js" type="text/javascript"	language="javascript"></script>
	<script src="../js/select.js" type="text/javascript"></script>
	
	</head>
	<body id="content" >
	<div id="main">
	<div id="breadnav">
	<ul>
		<li><h:outputText 
			value="仓库管理系统" /></li>
		<li>&gt;</li>
		<li><h:outputText  value="仓库履历管理" /></li>
		
	</ul>
	</div>
	<h:messages id="JSF_2" layout="table" style="color:red" />
	<h:form id="mchntForm">
		<h:panelGrid id="JSF_3" columns="3">
			<h:outputText id="JSF_4" value="#{messageCommon.operType}" />
			<h:panelGroup id="JSF_5">
				<h:inputText id="instCode1"
					value="{MchntInfoWBB.mchntInfoVO.cupBranchInsIdCd}" maxlength="11">
				
				<f:attribute name="wordLength" value="11" />
					</h:inputText>
			<a href="javascript:void(0)" onclick="Richfaces.showModalPanel('instSelect001Panel001')"
				class="current"> <h:outputText id="JSF_7" value="{messageCommon.selectIns}" /></a>
			</h:panelGroup>
			<h:panelGroup id="JSF_6">
				<rich:message for="instCode1" styleClass="hint" />
			</h:panelGroup>
			<h:outputText id="JSF_8" value="#{messageCommon.product}" />
			<h:panelGroup id="JSF_9">	
			<h:inputText id="instCode2"
				value="{MchntInfoWBB.mchntInfoVO.acqInsIdCd}" maxlength="11">
				
				<f:attribute name="wordLength" value="11" />
				</h:inputText>
			<a href="javascript:void(0)" onclick="Richfaces.showModalPanel('instSelect002Panel002')"
				class="current"> <h:outputText id="JSF_10" value="{messageCommon.selectIns}" /></a>
			</h:panelGroup>
    		<rich:message for="instCode2" styleClass="hint" />
			<h:outputText id="JSF_11" value="#{messageCommon.product}" />
			<h:inputText value="{MchntInfoWBB.mchntInfoVO.mchntCd}" id="mchntCd" maxlength="15">
					
                <f:attribute name="wordLength" value="15" />
					<rich:ajaxValidator event="onblur" />
			</h:inputText>
			<rich:message for="mchntCd" styleClass="hint"/>
			<h:outputText id="JSF_12" value="#{messageCommon.product}" />
			<h:inputText value="{MchntInfoWBB.mchntInfoVO.mchntCnNm}" id="mchntCnNm" maxlength="100">
				
                <f:attribute name="wordLength" value="100" />
					<rich:ajaxValidator event="onblur" />
			</h:inputText>
			<rich:message for="mchntCnNm" styleClass="hint"/>

		</h:panelGrid>
		<h:panelGroup id="JSF_28">
				<div class="table_btn">
				<div class="btn">
				<div class="btn_left"></div>
				<div class="btn_bar"><a4j:commandLink
					value="查询"
					action="{MchntInfoWBB.queryUser}" reRender="result" /></div>
				<div class="btn_right"></div>
				</div>
				</div>

			</h:panelGroup>
	</h:form>
		<a4j:form id="listForm">
		<h:panelGroup id="result">
	
		<h:panelGroup id="JSF_30" >
				<rich:dataTable id="listTable" value="{MchntInfoWBB.mchtInfoList}"
					var="mchntInfo" rows="1" rowKeyVar="row" styleClass="datashow13" rowClasses="white,alt" headerClass="table_head"
				onRowMouseOver="this.style.backgroundColor='bbe2f4'" 
				onRowMouseOut="this.style.backgroundColor='{a4jSkin.rowBackgroundColor}'" >
					
					
					<rich:column id="JSF_31">
						<f:facet name="header">
							<h:outputText id="JSF_32" value="时间" />
						</f:facet>											
						<h:outputText id="JSF_33" value="{MchntInfoWBB.pageModel1.offSet+row+1}" />
					</rich:column>
					
					<rich:column id="JSF_34" sortBy="{mchntInfo.data.cupBranchInsIdCd}">
						<f:facet name="header">
							<h:outputText id="JSF_35" value="操作方式" />
						</f:facet>
						<h:outputText id="JSF_36" value="{mchntInfo.data.cupBranchInsIdCd}" />
					</rich:column>

					<rich:column id="JSF_37" sortBy="{mchntInfo.data.acqInsIdCd}">
						<f:facet name="header">
							<h:outputText id="JSF_38" value="产品" />
						</f:facet>
						<h:outputText id="JSF_39" value="{mchntInfo.data.acqInsIdCd}" />
					</rich:column>

					<rich:column id="JSF_40" sortBy="{mchntInfo.data.mchntCd}">
						<f:facet name="header">
							<h:outputText id="JSF_41" value="数量" />
						</f:facet>
						<h:outputText id="JSF_42" value="{mchntInfo.data.mchntCd}" />
					</rich:column>

			

					<rich:column id="JSF_52">
						<f:facet name="header">
							<h:outputText id="JSF_53" value="详细查询" />
						</f:facet>
				
								<div class="table_btn">
								<div class="btn">
								<div class="btn_left"></div>
								<div class="btn_bar"><h:commandLink
									action="{MchntInfoWBB.mchtInfoDetail}"
									value="详细查询">
								</h:commandLink></div>
								<div class="btn_right"></div>
								</div>
								</div>
						
					</rich:column>
				
				</rich:dataTable>
		
			</h:panelGroup>
		</h:panelGroup>

	</a4j:form></div>
	</body>
	</html>
</f:view>